package com.mcy.cloud.user.controller;

import com.mcy.cloud.common.api.ProductRemoteService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author:mcyang
 * @Date:2021/7/10 下午6:16
 */
@RestController
@RequestMapping("user")
public class UserController {

    @DubboReference
    private ProductRemoteService productRemoteService;

    @GetMapping("hello")
    public String hello(String name) {
        return productRemoteService.helloProduct(name);
    }

}
